@extends('backend::layout')
@section('title',trans($page_title))
@section('content')

    @component('backend::component.form.form')
        @slot('page_title') {{$page_title}} @endslot
        @slot('formId') edit-price @endslot
        @slot('action') {{route('b_ShopGoods_updatePrice',['id'=>$goods->goods_id])}} @endslot

        @component('backend::component.form.form-group')
            @slot('title') 会员价 @endslot
            @component('backend::component.form.input')
                @slot('name') price @endslot
                @slot('value') {{$goods->price}} @endslot
            @endcomponent

        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 市场价 @endslot
            @component('backend::component.form.input')
                @slot('name') market_price @endslot
                @slot('value') {{$goods->market_price}} @endslot
            @endcomponent
        @endcomponent


{{--        @component('backend::component.form.form-group')--}}
{{--            @slot('title') 会员价 @endslot--}}
{{--            @component('backend::component.form.input')--}}
{{--                @slot('name') vip_price @endslot--}}
{{--                @slot('value') {{$goods->vip_price}} @endslot--}}
{{--            @endcomponent--}}
{{--        @endcomponent--}}

{{--        @component('backend::component.form.form-group')--}}
{{--            @slot('title') 商品成本 @endslot--}}
{{--            @component('backend::component.form.input')--}}
{{--                @slot('name') cost_price @endslot--}}
{{--                @slot('value') {{$goods->cost_price}} @endslot--}}
{{--            @endcomponent--}}
{{--        @endcomponent--}}

        @slot('buttons')
            @component('backend::component.form.button')
                @slot('title') 修改 @endslot
                @slot('size') sm @endslot
                @slot('params') {"formId":"#edit-price"} @endslot
                @slot('class') btn-min-width ajax-form @endslot
            @endcomponent
        @endslot
    @endcomponent
@endsection